<nav class="itq-nav">
    <section class="itq-wrapper">
        <ul>
            <li><a href="<?php  echo $url ?>home.html">Trang chủ</a></li>
            <li>
                <a href="<?php echo $url ?>Gioi-Thieu/2.html">
                Giới Thiệu
                </a>
            </li>
            <li><a href="iphone.html">iPhone</a></li>
            <li><a href="ipad.html">iPad</a></li>
            <li><a href="ipod.html">iPod</a></li>
            <li><a href="phukien.html">Phụ kiện</a></li>
            <li><a href="<?php  echo $url ?>list-news.html?&khuyenmai=1">Khuyến mại</a></li>
            <li><a href="<?php  echo $url ?>list-news.html?&congnghe=1">Tin tức</a></li>
            <li><a href="<?php  echo $url ?>list-news.html?&tuyendung=1">Khách hàng thân thiết</a></li>
        </ul>
        <section class="itq-login">
            <span>
				<?php if(isset($login))
				{
				?>
                	<a href="#" style="color:#FFF; margin-right:3px; text-decoration:none;">
                    	<?php 
							if(strlen($login['email'])>18)  
								echo substr($login['email'], 0, 17).'...';
							else echo $login['email'];
					    ?>
                    </a>
                    
                    <a href="<?php echo $url ?>logout.html">
                    	<img src='<?php echo  $url_dir; ?>images/thoat.gif'/>
                    </a>
      
                <?php    
				}
				 else echo "Tài khoản"; ?>
                
            </span>
            <?php if(!isset($login)){ ?>
            <form class="form-login"  method="post" action="">
                <section class="form-grey">
                    <input class="closeBtn" type="button" value="">
                    <input 
                    	name="data[email]" 
                        class="txt-ac" 
                        id="txtemail"
                        type="text" 
                        placeholder="E-mail">
                    <input 
                    	name="data[password]" 
                        class="txt-ac" 
                        id="pwpassword" 
                        type="password" 
                        placeholder="Mật khẩu" >
                    <div class="forgot-pass"><span><a href="#">Quên mật khẩu?</a></span></div>
                    <div class="remem-pass"><input id="ckRem" type="checkbox"><label for="ckRem">Ghi nhớ thông tin đăng nhập</label></div>
                </section>
                <section class="form-btn">
                    <input name="btnLogin" id="btnLogin" class="blueBtn" type="submit" value="ĐĂNG NHẬP">
                    <input class="greyBtn" id="click" type="button" value="ĐĂNG KÝ">
                </section>
            </form>
            <?php } ?>
            <section id="register">
                <header><h3>TÀI KHOẢN</h3></header>
                <section class="register-info">
                    <h3>ĐĂNG KÝ</h3>
                    <form action="" method="post">
                        <input 
                        	name="data[fullname]" 
                        	class="txt-ac inline" 
                            type="text" 
                            placeholder="Họ và tên">
                        <input 
                        	name="data[email]" 
                            class="txt-ac inline" 
                            type="text"
                            placeholder="Địa chỉ Email">
                        <input 
                        	name="data[password]" 
                            class="txt-ac inline" 
                            type="password" 
                            placeholder="Mật khẩu">
                        <input name="btnSign" class="blueBtn" type="submit" value="ĐĂNG KÝ">
                    </form>
                </section><!--end .register-info-->
                <section class="register-info">
                    <h3>ĐĂNG NHẬP</h3>
                    <form action="" method="post">
                        <input 
                        	name="data[email]"
                        	class="txt-ac inline" 
                            type="text" 
                            placeholder="Địa chỉ Email">
                        <input 
                        	name="data[password]"
                        	class="txt-ac inline" 
                            value="pass" 
                            type="password" 
                            placeholder="Mật khẩu">
                            
                        <input name="btnLogin" class="blueBtn" type="submit" value="ĐĂNG NHẬP">
                    </form>
                </section><!--end .register-info-->
            </section>
        </section><!--end .itq-login-->
    </section>
</nav>